package com.codegero.sms;

import android.telephony.SmsManager;

public class SmsSender {
	
	public SmsSender(String noHp){
		mNoHp		= noHp;
	}
	public SmsSender(String noHp, String data){
		mNoHp		= noHp;
		mPesan		= data;
	}
	public SmsSender(){
		
	}
	public String getNoHp() {
		return mNoHp;
	}
	public void setNoHp(String mNoHp) {
		this.mNoHp = mNoHp;
	}
	public String getPesan() {
		return mPesan;
	}
	public void setPesan(String pesan) {
		this.mPesan = pesan;
	}
	public void send(){
		SmsManager sms = SmsManager.getDefault();
		sms.sendTextMessage(mNoHp, null, mPesan, null, null);
	}
	public void send(String data){
		SmsManager sms = SmsManager.getDefault();
		sms.sendTextMessage(mNoHp, null, data, null, null);
	}
	public void send(String noHp, String data){
		SmsManager sms = SmsManager.getDefault();
		sms.sendTextMessage(noHp, null, data, null, null);
	}
	private String mNoHp = "";
	private String mPesan = "";
}
